image tag in html

84

html img size -

<p><img src="image/example.jpg" alt="Example1" width="193" height="130"> (width:193px, height:130px)</p>

<p><img src="image/example.jpg" alt="Example2" width="96" height="65"> (width:96px, height:65px)</p>

<p><img src="image/example.jpg" alt="Example3" width="100%" height="130"> (width:100%, height:130px)</p>

HTML <img> tag: -

&lt;!DOCTYPE html&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Title of the document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h2&gt;Example&lt;/h2&gt;
    &lt;img src="https://i.pinimg.com/originals/c7/93/ae/c793ae372886c450d55535211231204e.jpg" alt="Nature" width="400" height="700"&gt;
  &lt;/body&gt;
&lt;/html&gt;

Comments

Submit
0 Comments